import request from "."
interface LoginParams {
  username: string,
  password: string,
  captcha_id: string,
  captcha_code: string
}



export const loginApi = (data:LoginParams) => {
  return request.post('/auth/login',data)
}

export const getCaptcha = ()=>{
  return request.get('/auth/captcha')
}

export const logoutApi = ()=>{
  return request.post('/auth/logout')
}

